import { StyleSheet, Text, View } from 'react-native'
import React from 'react'
import AlbumItem from './AlbumItem'
import FlatList from '../FlatList'

const AlbumList = (props) => {
  return (
    <View style={styles.container}>
      <FlatList style={styles.flatList} {...props}
        renderItem={({ data, index }) => (
          <AlbumItem data={data} del={props.del}></AlbumItem>
        )}></FlatList>
    </View>
  )
}

export default AlbumList

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingHorizontal: 5,
    marginVertical: 10
  }
})